home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HPAVC
/
HPAVC CD-ROM.iso
/
ABUSESRC.ZIP
/
AbuseSrc
/
macabuse
/
imlib
/
include
/
visobj.hpp
< prev
next >
Wrap
C/C++ Source or Header
|
1997-05-20
|
1KB
|
45 lines
#ifndef VIS_OBJECT_HPP
#define VIS_OBJECT_HPP
#include "jwindow.hpp"
#include "filter.hpp"
class visual_object
{
public :
virtual void draw(image *screen, int x, int y, window_manager *wm, filter *f) = 0;
virtual int width(window_manager *wm) = 0;
virtual int height(window_manager *wm) = 0;
} ;
class image_visual : public visual_object
{
public :
image *im;
image_visual(image *img) { im=img; }
virtual void draw(image *screen, int x, int y,
window_manager *wm, filter *f);
virtual int width(window_manager *wm) { return im->width(); }
virtual int height(window_manager *wm) { return im->height(); }
} ;
class string_visual : public visual_object
{
char *st;
int color;
int w,h;
public :
string_visual(char *string, int Color);
virtual void draw(image *screen, int x, int y,
window_manager *wm, filter *f);
virtual int width(window_manager *wm);
virtual int height(window_manager *wm);
} ;
#endif